#region Copyright
/// <copyright>
/// Copyright (c) 2007 Ilia Shramko.
/// Released under the terms of the GNU General Public License.
/// </copyright>
#endregion

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Runtime.InteropServices;
using System.Text;

namespace Osh.Configuration
{
	public interface ILogotypesElement : IConfigurationElement
	{
		string RootFolder { get; set; }
		string NameRegexp { get; set; }
	}

	[ClassInterface(ClassInterfaceType.None)]
	public class LogotypesElement : ConfigurationElement, ILogotypesElement
	{
		public LogotypesElement()
		{
		}

		[ConfigurationProperty("rootFolder")]
		public string RootFolder
		{
			get { return (string)this["rootFolder"]; }
			set { this["rootFolder"] = value; }
		}

		[ConfigurationProperty("nameRegexp", DefaultValue = @"(?:\d[\d_]*\s+)?(\w[\w\s]*\w+|\w+)")]
		public string NameRegexp
		{
			get { return (string)this["nameRegexp"]; }
			set { this["nameRegexp"] = value; }
		}
	
	}
}
